/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controlacciones.ejb3.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author vanessa
 */
@Entity
@Table(name = "tb_datos_cliente")
@NamedQueries({
    @NamedQuery(name = "TbDatosCliente.findAll", query = "SELECT t FROM TbDatosCliente t"),
    @NamedQuery(name = "TbDatosCliente.findByZona", query = "SELECT t FROM TbDatosCliente t WHERE t.zona = :zona"),
    @NamedQuery(name = "TbDatosCliente.findByRegion", query = "SELECT t FROM TbDatosCliente t WHERE t.region = :region"),
    @NamedQuery(name = "TbDatosCliente.findBySector", query = "SELECT t FROM TbDatosCliente t WHERE t.sector = :sector"),
    @NamedQuery(name = "TbDatosCliente.findByMzn", query = "SELECT t FROM TbDatosCliente t WHERE t.mzn = :mzn"),
    @NamedQuery(name = "TbDatosCliente.findByLote", query = "SELECT t FROM TbDatosCliente t WHERE t.lote = :lote"),
    @NamedQuery(name = "TbDatosCliente.findBySublote", query = "SELECT t FROM TbDatosCliente t WHERE t.sublote = :sublote"),
    @NamedQuery(name = "TbDatosCliente.findByNumInscrip", query = "SELECT t FROM TbDatosCliente t WHERE t.numInscrip = :numInscrip"),
    @NamedQuery(name = "TbDatosCliente.findByNroSolicitud", query = "SELECT t FROM TbDatosCliente t WHERE t.nroSolicitud = :nroSolicitud"),
    @NamedQuery(name = "TbDatosCliente.findByNombre", query = "SELECT t FROM TbDatosCliente t WHERE t.nombre = :nombre"),
    @NamedQuery(name = "TbDatosCliente.findByDireccion", query = "SELECT t FROM TbDatosCliente t WHERE t.direccion = :direccion"),
    @NamedQuery(name = "TbDatosCliente.findByUrba", query = "SELECT t FROM TbDatosCliente t WHERE t.urba = :urba"),
    @NamedQuery(name = "TbDatosCliente.findByLocalidad", query = "SELECT t FROM TbDatosCliente t WHERE t.localidad = :localidad"),
    @NamedQuery(name = "TbDatosCliente.findByCodSec", query = "SELECT t FROM TbDatosCliente t WHERE t.codSec = :codSec"),
    @NamedQuery(name = "TbDatosCliente.findByCodSecCom", query = "SELECT t FROM TbDatosCliente t WHERE t.codSecCom = :codSecCom")})
public class TbDatosCliente implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "zona")
    private String zona;
    @Column(name = "region")
    private String region;
    @Column(name = "sector")
    private String sector;
    @Column(name = "mzn")
    private String mzn;
    @Column(name = "lote")
    private String lote;
    @Column(name = "sublote")
    private String sublote;
    @Id
    @Basic(optional = false)
    @Column(name = "num_inscrip")
    private String numInscrip;
    @Column(name = "nro_solicitud")
    private String nroSolicitud;
    @Column(name = "nombre")
    private String nombre;
    @Column(name = "direccion")
    private String direccion;
    @Column(name = "urba")
    private String urba;
    @Column(name = "localidad")
    private String localidad;
    @Column(name = "cod_sec")
    private String codSec;
    @Column(name = "cod_sec_com")
    private String codSecCom;

    public TbDatosCliente() {
    }

    public TbDatosCliente(String numInscrip) {
        this.numInscrip = numInscrip;
    }

    public String getZona() {
        return zona;
    }

    public void setZona(String zona) {
        this.zona = zona;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getSector() {
        return sector;
    }

    public void setSector(String sector) {
        this.sector = sector;
    }

    public String getMzn() {
        return mzn;
    }

    public void setMzn(String mzn) {
        this.mzn = mzn;
    }

    public String getLote() {
        return lote;
    }

    public void setLote(String lote) {
        this.lote = lote;
    }

    public String getSublote() {
        return sublote;
    }

    public void setSublote(String sublote) {
        this.sublote = sublote;
    }

    public String getNumInscrip() {
        return numInscrip;
    }

    public void setNumInscrip(String numInscrip) {
        this.numInscrip = numInscrip;
    }

    public String getNroSolicitud() {
        return nroSolicitud;
    }

    public void setNroSolicitud(String nroSolicitud) {
        this.nroSolicitud = nroSolicitud;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getDireccion() {
        return direccion;
    }

    public void setDireccion(String direccion) {
        this.direccion = direccion;
    }

    public String getUrba() {
        return urba;
    }

    public void setUrba(String urba) {
        this.urba = urba;
    }

    public String getLocalidad() {
        return localidad;
    }

    public void setLocalidad(String localidad) {
        this.localidad = localidad;
    }

    public String getCodSec() {
        return codSec;
    }

    public void setCodSec(String codSec) {
        this.codSec = codSec;
    }

    public String getCodSecCom() {
        return codSecCom;
    }

    public void setCodSecCom(String codSecCom) {
        this.codSecCom = codSecCom;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (numInscrip != null ? numInscrip.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TbDatosCliente)) {
            return false;
        }
        TbDatosCliente other = (TbDatosCliente) object;
        if ((this.numInscrip == null && other.numInscrip != null) || (this.numInscrip != null && !this.numInscrip.equals(other.numInscrip))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "controlacciones.ejb3.entity.TbDatosCliente[numInscrip=" + numInscrip + "]";
    }

}
